function Population() {
    this.items = [];
    this.qty = 10;
    this.estimate = new Estimate();
    this.estimateBest = 0;
}


function PopulationItem(game, moveX, moveY, value, estimateValue) {
    this.game = game;
    this.move = {x: moveX, y: moveY};
    this.estimate = estimateValue;
    this.forValue = value;
    this.info = '';
}

Population.prototype.addItem = function(game, moveX, moveY, value) {
    this.estimate.game = game;
    var estimateValue = this.estimate.getEstimateForValue(value);
    
    if (estimateValue === this.estimateBest) {
        
        // add population item to collection
        var item = new PopulationItem(game, moveX, moveY, value, estimateValue );
        this.items.push(item);
        
    }else if (estimateValue >= this.estimateBest) {
        
        // clear population items and
        // add popupation item to collection
        this.items = [];
        this.estimateBest = estimateValue;
        var item = new PopulationItem(game, moveX, moveY, value, estimateValue );
        this.items.push(item);
        
    }
};